// ApnsHttp2 project main.go
package main

import (
	"ApnsHttp2/apns"
	"ApnsHttp2/client"
	"ApnsHttp2/config"
	"ApnsHttp2/log"
	"ApnsHttp2/server"
	"ApnsHttp2/statics"
	"flag"
	"runtime"
)

func init() {
	flag.StringVar(&config_path, "f", "conf.ini", "config file path")
	flag.Parse()

	config.InitConfig(config_path)
	log.InitLog()
	apns.InitApns()
	statics.InitStatics()
	server.InitApnsServer()
	client.InitClient()
}

var config_path string

func main() {
	runtime.GOMAXPROCS(runtime.NumCPU())

	select {}
}
